#!/bin/bash

source /etc/profile
day=$(date +%Y-%m-%d)
echo $day

cd /home/marvin/sqoop-1.4.6-cdh5.6.0

#sh /home/marvin/daily_job/update/main/res_oil_vip_main.sh $day
#sh /home/marvin/daily_job/update/main/res_notoil_vip_main.sh $day
sh /home/marvin/daily_job/update/main/res_recharge_main.sh
sh /home/marvin/daily_job/update/main/res_recharge_cd_main.sh
sh /home/marvin/daily_job/update/main/res_vipEvaluation_all_main.sh

#sh /home/marvin/daily_job/update/main/res_lube_main.sh $day



#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_oil --export-dir /user/hive/warehouse/res_oil/ --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_notoil --export-dir /user/hive/warehouse/res_notoil/ --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_oil_vip --export-dir /user/hive/warehouse/res_oil_vip --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_notoil_vip --export-dir /user/hive/warehouse/res_notoil_vip --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_addVip --export-dir /user/hive/warehouse/res_addvip/ --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_addVip_cd --export-dir /user/hive/warehouse/res_addvip_cd/ --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_recharge --export-dir /user/hive/warehouse/res_recharge/ --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_recharge_cd --export-dir /user/hive/warehouse/res_recharge_cd/ --input-fields-terminated-by ',' -m 1

#bin/sqoop export --connect jdbc:mysql://192.168.0.34:3306/result --username root --password root --table res_vipEvaluation_all --export-dir /user/hive/warehouse/res_vipevaluation_all/ --input-fields-terminated-by ',' -m 1
